com.justhis.lucene.xml
Class XMLDocumentHandlerSAX

java.lang.Object
  extended byorg.xml.sax.helpers.DefaultHandler
      extended bycom.justhis.lucene.xml.XMLDocumentHandlerSAX
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

public class XMLDocumentHandlerSAX
extends org.xml.sax.helpers.DefaultHandler

TODO

Version:
$Revision: 1.1 $
Author:
acai

Constructor Summary
XMLDocumentHandlerSAX(java.io.File xmlFile)
          ???????? ????XML??????????????????????SAX????????????????Handler??XML??????????
 
Method Summary
 void characters(char[] text, int start, int length)
           
 void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName)
           
 org.apache.lucene.document.Document getDocument()
          DOCUMENT ME!
 void startDocument()
           
 void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes)
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLDocumentHandlerSAX

public XMLDocumentHandlerSAX(java.io.File xmlFile)
                      throws javax.xml.parsers.ParserConfigurationException,
                             org.xml.sax.SAXException,
                             java.io.IOException
???????? ????XML??????????????????????SAX????????????????Handler??XML??????????

Parameters:
xmlFile - XML????????
Throws:
javax.xml.parsers.ParserConfigurationException - if the implementation is not available or cannot be instantiated.
org.xml.sax.SAXException - if a parser cannot be created which satisfies the requested configuration.
java.io.IOException - If any IO errors occur
Method Detail

startDocument

public void startDocument()

startElement

public void startElement(java.lang.String uri,
                         java.lang.String localName,
                         java.lang.String qName,
                         org.xml.sax.Attributes attributes)
                  throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

characters

public void characters(char[] text,
                       int start,
                       int length)

endElement

public void endElement(java.lang.String uri,
                       java.lang.String localName,
                       java.lang.String qName)
                throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

getDocument

public org.apache.lucene.document.Document getDocument()
DOCUMENT ME!

Returns:
TODO


Copyright © 2003 EastNetworks.Net(China)Co.,Ltd.. All Rights Reserved.